﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="account_request.aspx.cs" Inherits="Admin_account_request" Title="Register Requests Management" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="RadDatePicker" ResourceUICultures="RadDatePicker" />
        </Scripts>
    </asp:ScriptManager>
    <asp:Panel ID="Panel1" CssClass="panel" runat="server">
        <div class="row">
            <div class="left">ID:</div>
            <div class="right"><asp:TextBox ID="txtId" runat="server" Width="50px" ></asp:TextBox></div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Username:</div>
            <div class="right"><asp:TextBox ID="txtUser" runat="server" Width="350px"></asp:TextBox>
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Fullname:</div>
            <div class="right"><asp:TextBox ID="txtFullname" runat="server" Width="350px"></asp:TextBox>
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Roll No:</div>
            <div class="right"><asp:TextBox ID="txtRollNo" runat="server" Width="350px"></asp:TextBox>
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Admission Date:</div>
            <div class="right">
            <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DateInput-DateFormat="dd/MM/yyyy">
            </telerik:RadDatePicker>
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">User Type:</div>
            <div class="right">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="350px">
                    <asp:ListItem Value="-1">Please select...</asp:ListItem>
                    <asp:ListItem Value="0">Untyped</asp:ListItem>
                    <asp:ListItem Value="1">Admin</asp:ListItem>
                    <asp:ListItem Value="2">Faculty</asp:ListItem>
                    <asp:ListItem Value="3">Member</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="lblUserTypeError" runat="server" ForeColor="Red" Text="Please select type!" 
                    Visible="False"></asp:Label>
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left"></div>
            <div class="right">
                <asp:Button ID="cmdAccept" runat="server" Text="Accept" 
                    onclick="cmdAccept_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="cmdDeny" runat="server" Text="Deny" 
                    onclick="cmdDeny_Click" onclientclick="return confirm('Are you sure?');" />
            </div>
        </div>
        <div class="clear"></div>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server">
    <asp:GridView ID="GridView1" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="6" 
        ForeColor="Black" GridLines="Horizontal" AllowPaging="True" 
        AutoGenerateColumns="False" Width="990px" DataKeyNames="id" 
        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
        onpageindexchanging="GridView1_PageIndexChanging">
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="userName" HeaderText="Username" />
            <asp:BoundField DataField="fullName" HeaderText="Full Name" />
            <asp:BoundField DataField="rollNo" HeaderText="Roll No" />
            <asp:BoundField DataField="date" HeaderText="Adminssion Date" />
            <asp:BoundField DataField="status" HeaderText="Status" />
            <asp:BoundField DataField="uType" HeaderText="User Type" />
            <asp:CommandField EditImageUrl="~/images/Admin/hammer_screwdriver.png" HeaderText="Edit" 
                ShowEditButton="True" ButtonType="Image" >
                <ItemStyle Font-Underline="True" HorizontalAlign="Center" Width="40px" />
            </asp:CommandField>
            <asp:TemplateField HeaderText="Delete">
                <ItemTemplate>
                    <asp:Button ID="deleteButton" runat="server" CommandName="Delete" style="width:16px;height:16px;background:url(../images/Admin/cross.png);border:none;cursor:pointer;" OnClientClick="return confirm('Are you sure?');" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#99CCFF" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
    </asp:GridView>

 </asp:Panel>
</asp:Content>

